Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pleroma
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Hakaba Hitoyo
pleroma
Commits
d1687725
Commit
d1687725
authored
6 years ago
by
normandy
Browse files
Options
Downloads
Patches
Plain Diff
doc fixes
parent
5b0d0b9a
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
lib/pleroma/web/activity_pub/utils.ex
+4
-1
4 additions, 1 deletion
lib/pleroma/web/activity_pub/utils.ex
with
4 additions
and
1 deletion
lib/pleroma/web/activity_pub/utils.ex
+
4
−
1
View file @
d1687725
...
...
@@ -237,7 +237,7 @@ def fetch_latest_follow(%User{ap_id: follower_id}, %User{ap_id: followed_id}) do
#### Announce-related helpers
@doc
"""
Make announce activity data for the given actor and object
Retruns an existing announce activity if the notice has already been announced
"""
def
get_existing_announce
(
actor
,
%{
data:
%{
"id"
=>
id
}})
do
query
=
...
...
@@ -258,6 +258,9 @@ def get_existing_announce(actor, %{data: %{"id" => id}}) do
Repo
.
one
(
query
)
end
@doc
"""
Make announce activity data for the given actor and object
"""
def
make_announce_data
(
%
User
{
ap_id:
ap_id
}
=
user
,
%
Object
{
data:
%{
"id"
=>
id
}}
=
object
,
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment