Homestyx hydra
Diffusion hydra 89778dc9e617

Add Open Graph protocol meta tags to Maniphest task pages

Description

Add Open Graph protocol meta tags to Maniphest task pages

Summary:
Add OGP <meta> tags to Maniphest task pages when the task is publicly accessible and anonymously accessed. See https://ogp.me/

Based on rP2c72c2b924ffa3f8a49dbec636a2cdca3bae004f reverted in rP49b57eae7df52c189aef1d973823c697fc97fd4b.

Closes T15472

Test Plan:

  • Use the default Phorge logo, open a Maniphest task, look at the headers in its HTML.
  • Set a custom Phorge logo via config/edit/ui.logo/.
  • Access a task with "View Policy: All Users" while logged in: No OGP headers included.
  • Access a task with "View Policy: Public" while logged in: No OGP headers included.
  • Access a task with "View Policy: All Users" while logged out: No OGP headers included; "Access Denied: Restricted Maniphest Task" displayed.
  • Access a task with "View Policy: Public" while logged out: OGP headers included.
  • Access a task with "View Policy: Public" while logged out with a task description and a task without a task description: OGP headers included.

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: avivey, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15472

Differential Revision: https://we.phorge.it/D25668

Details

Provenance
Andre KlapperAuthored on May 20 2024, 4:28 PM
sirocylPushed on Oct 16 2024, 5:49 AM
Parents
R1:1cc04fb83cd5: Explicitly cast "limit" (page size) API parameter to int
Branches
Unknown
Tags
Unknown

Event Timeline