-
Notifications
You must be signed in to change notification settings - Fork 29
Introducing thread/microblog locking #1773
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
base: main
Are you sure you want to change the base?
Conversation
ebba215 to
3234d80
Compare
|
Is still a draft or not? |
|
Nope, ready to be reviewed :) |
71bc4bf to
c81f5ca
Compare
| $this->groupFactory->getActivityPubId($object->magazine), | ||
| $this->urlGenerator->generate('ap_user_followers', ['username' => $activity->userActor->username], UrlGeneratorInterface::ABSOLUTE_URL), | ||
| ], | ||
| 'object' => $objectUrl, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe still good to check if $objectUrl is no null/empty?
| $this->logger->info('[CreateHandler::doWork] Did not create the post, because the magazine {m} restricts posting to mods and {u} is not a mod', ['m' => $e->magazine, 'u' => $username]); | ||
| } catch (InstanceBannedException $e) { | ||
| $this->logger->info('[CreateHandler::doWork] Did not create the post, because the user\'s instance is banned'); | ||
| } catch (UserBlockedException $e) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated to your change, but I think $e can be removed here as well. Since its not used.
c81f5ca to
50c314a
Compare
|
I notice you recently made (yesterday) some discoveries in this PR.. maybe its a good idea to wait with large PR after the 1.9.0 release..? Do you agree? |
|
I only resolved the merge conflict. But I don't need to have this in 1.9.0 |
- Threads and microblogs can now be locked so comments cannot be added anymore. This includes: - API support (new scopes) - ActivityPub support (`Lock` activity, post editing, etc.) - Authors and moderators can lock threads and microblogs - Add modlog items for the new lock and unlock events - Add tests for basically everything
- The `UpdateHandler` used the wrong boolean logic for setting the isLocked (which is the inverse of `commentsEnabled`) - Add write to `isLocked` during the creation of entries and posts via ActivityPub
8349166 to
01570d2
Compare
Lockactivity, post editing, etc.)Related to #248