Comments (5)
Right, so I got boosts to work but not undoing them. (What I tried was, when a Delete activity comes by for a "repost," to turn it into an "Undo" instead. Had a quick look at Pixelfed's source, couldn't readily see why it wouldn't work.)
I also skipped the part where I really should check whether the remote page even supports Activity Streams JSON.
Code is here, if someone ever wants to give it a go:
addon-for-activitypub/includes/class-plugin.php
Lines 135 to 164 in 5f27721
from addon-for-activitypub.
Looks like ... Friends does this? https://github.com/akirk/friends/blob/074292f7812eae7443f6585d8218fa142b1d8c46/feed-parsers/class-feed-parser-activitypub.php#L2031-L2047
from addon-for-activitypub.
So, the previous approach worked (but Undo did not). The Friends approach doesn't seem to work (for me).
But: we should be able to just do (after minor changes): https://github.com/Automattic/wordpress-activitypub/blob/f6b4783dedbc5ad07c42a9c49a275ecaed05a227/includes/class-activity-dispatcher.php#L92-L113
from addon-for-activitypub.
https://github.com/pixelfed/pixelfed/blob/dev/app/Transformer/ActivityPub/Verb/UndoAnnounce.php
from addon-for-activitypub.
OK, we got it working, and undo's too. The one thing that's weird, but that goes for "regular" posts, too, is that "undeleting" doesn't work. Meaning, this is just the plugin's behavior, I guess.
Oh, and another thing is that undoing a boost does not automatically "delete" the accompanying (in Mastodon) notification. Maybe we shouldn't "mention" users?
from addon-for-activitypub.
Related Issues (20)
- Move "unlisted comments" behind option
- Implement "reply posts" HOT 10
- Completely remove IndieBlocks dependency HOT 1
- Implement "limit updates" HOT 1
- (Author) profile "templates"? HOT 1
- "Don't federate post" filter HOT 3
- Delay scheduling Gutenberg posts to `rest_after_insert_{$post->post_type}` HOT 7
- Undoing of announces seems to never run or get federated
- Boosts don't seem to federate to all followers HOT 6
- Implements likes
- Reschedule failed requests?
- Use ACTIVITYPUB_REST_NAMESPACE
- Improve avatar caching/updates HOT 1
- Close AP comments after a certain amount of time
- Content warnings
- Post format support
- Add incoming likes and reposts HOT 5
- "Reply on the Fediverse" filter
- Enable editing incoming interactions HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from addon-for-activitypub.