Skip to content

FEATURE: Add ActivityPub topic map, topic actions, post actions and topic info, and update ActivityPub post info. #161

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 27 commits into from
Feb 13, 2025

Conversation

angusmcleod
Copy link
Contributor

@pmusaraj This PR does the following:

  • Adds an ActivityPub Topic Map
  • Adds ActivityPub Topic Actions
  • Adds ActivityPub Post Actions
  • Adds ActivityPub Topic Info
  • Updates ActivityPub Post info

Here's a narrative as to why the additional changes (in addition to the topic map) these changes are needed:

https://www.loom.com/share/7cbe6ac12f614f24ac7a481eb901c3a2?sid=11d38c5c-66f0-4b16-9c6d-beba052bf6fe

@pmusaraj
Copy link
Contributor

pmusaraj commented Feb 7, 2025

Thanks @angusmcleod, I'm going to review this over the weekend into Monday and plan to merge early next week!

Copy link
Contributor

@pmusaraj pmusaraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Overall this is looking great. I have gone over about 60% of the code here and tested it on my instance, not seeing any major issues. Left some minor comments in the code.

One thing to note with ingested posts is that the "published" copy doesn't sound right.

image

I would opt for something like "Ingested from source at date". I'm not sure we need "OrderedCollection" here, it seems too technical. We could also change the title to "ActivityPub Log for Topic #122".

Also, instead of having two lines:

  • Article was published on...
  • Original Article on ...

We could have one,

  • Originally published on source at date (linked to the source)

I think the type (Article/Note) and visibility could go in the same line:

  • Type: Article -- Visibility: Public

This would reduce the duplication of dates/metadata in the outgoing objects as well:

CleanShot 2025-02-11 at 23 29 11@2x


Not sure if this is clear, happy to provide a mockup if you prefer. Overall, this worked great in my quick testing, clearer than before and I like the additional controls for admins.

@angusmcleod
Copy link
Contributor Author

@pmusaraj Thanks for the feedback. I've addressed the specific code feedback and am working on improving the ActivityPub info along the lines you laid out.

Copy link
Contributor

@pmusaraj pmusaraj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, looks great, thanks!

@pmusaraj pmusaraj merged commit 414d17d into discourse:main Feb 13, 2025
5 checks passed
pmusaraj added a commit that referenced this pull request Feb 13, 2025
…ns and topic info, and update ActivityPub post info. (#161)"

This reverts commit 414d17d.
pmusaraj added a commit that referenced this pull request Feb 13, 2025
…ns and topic info, and update ActivityPub post info. (#161)" (#167)

This reverts commit 414d17d.
pmusaraj added a commit that referenced this pull request Feb 13, 2025
…ons and topic info, and update ActivityPub post info. (#161)" (#167)

This reverts commit 05aa143.
pmusaraj added a commit that referenced this pull request Feb 14, 2025
…opic info, and update ActivityPub post info (#169)

* Reapply "FEATURE: Add ActivityPub topic map, topic actions, post actions and topic info, and update ActivityPub post info. (#161)" (#167)

Co-authored-by: Penar Musaraj <pmusaraj@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants