@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.

Include 'published' date of posts in Phame Atom feeds

Summary:
Metadata of Phame blog posts includes the 'updated' date of a blog post. Make them also include the original 'published' date.

Patch written by @20after4 from:

https://phabricator.wikimedia.org/rPHAB3de500bfc845759d6da82180df0adfc12f973463

Closes T15686

Test Plan:
* Go to the Atom feed of blog 1 at `/phame/blog/feed/1/` and look at this `<feed>`'s source
* Apply patch and do the same, see additional `<published>` entry just like the `<updated>`
* Edit the last blog post in blog 1, then check Atom feed and verify that the published and updated date stamp differ as expected

Reviewers: O1 Blessed Committers, valerio.bozzolan

Reviewed By: O1 Blessed Committers, valerio.bozzolan

Subscribers: tobiaswiese, valerio.bozzolan, Matthew, 20after4, Cigaryno

Maniphest Tasks: T15686

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

authored by

Mukunda Modell and committed by
Andre Klapper
6c8329fb 5ddca7da

+5
+5
src/applications/phame/controller/blog/PhameBlogFeedController.php
··· 72 72 $bloggers[$post->getBloggerPHID()]->getFullName()); 73 73 74 74 $content[] = phutil_tag( 75 + 'published', 76 + array(), 77 + date('c', $post->getDatePublished())); 78 + 79 + $content[] = phutil_tag( 75 80 'updated', 76 81 array(), 77 82 date('c', $post->getDateModified()));