@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add text/html self link in Phame atom feed

Summary: Closes T15753

Test Plan: Go to http://phorge.localhost/phame/blog/feed/1/, look at its HTML source, find additional `<link rel="alternate" type="text/html" href="...">`

Reviewers: O1 Blessed Committers, mainframe98

Reviewed By: O1 Blessed Committers, mainframe98

Subscribers: mainframe98, ram1116, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno

Maniphest Tasks: T15753

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

+11 -4
+11 -4
src/applications/phame/controller/blog/PhameBlogFeedController.php
··· 24 24 ->withVisibility(array(PhameConstants::VISIBILITY_PUBLISHED)) 25 25 ->execute(); 26 26 27 - $blog_uri = PhabricatorEnv::getProductionURI( 28 - $this->getApplicationURI('blog/feed/'.$blog->getID().'/')); 27 + $blog_feed_uri = PhabricatorEnv::getProductionURI($blog->getFeedURI()); 28 + $blog_view_uri = PhabricatorEnv::getProductionURI($blog->getViewURI()); 29 29 $content = array(); 30 30 $content[] = phutil_tag('title', array(), $blog->getName()); 31 - $content[] = phutil_tag('id', array(), $blog_uri); 31 + $content[] = phutil_tag('id', array(), $blog_feed_uri); 32 32 $content[] = phutil_tag('link', 33 33 array( 34 34 'rel' => 'self', 35 35 'type' => 'application/atom+xml', 36 - 'href' => $blog_uri, 36 + 'href' => $blog_feed_uri, 37 + )); 38 + $content[] = phutil_tag('link', 39 + array( 40 + 'rel' => 'alternate', 41 + 'type' => 'text/html', 42 + 'href' => $blog_view_uri, 43 + 'title' => $blog->getName(), 37 44 )); 38 45 39 46 $updated = $blog->getDateModified();