Commit graph

14618 commits

Author SHA1 Message Date
Tusooa Zhu
c93ab3b80f
Fix cannot get full history on object fetch 2022-07-27 15:01:09 +03:00
Tusooa Zhu
f6384bfdd5
Validate object data for incoming Update activities
In Create validator we do not validate the object data,
but that is because the object itself will go through the
pipeline again, which is not the case for Update. Thus,
we added validation for objects in Update activities.
2022-07-27 15:00:54 +03:00
Tusooa Zhu
e42a6ff405
Pass history items through ObjectValidator for updatable object types 2022-07-27 15:00:54 +03:00
Tusooa Zhu
53fdb10635
Make outbound transmogrifier aware of edit history 2022-07-27 14:59:54 +03:00
Tusooa Zhu
acd1daf9ea
Do not put meta[:object_data] for local Updates 2022-07-27 14:59:54 +03:00
Tusooa Zhu
a5ba2a3179
Fix local updates causing emojis to be lost 2022-07-27 14:59:54 +03:00
Tusooa Zhu
12bb15516a
Verify that formerRepresentation provided in Update is used 2022-07-27 14:59:54 +03:00
Tusooa Zhu
1c4065accc
Reuse formerRepresentations from remote if possible 2022-07-27 14:59:54 +03:00
Tusooa Zhu
57c130825b
Unify the logic of updating objects 2022-07-27 14:59:54 +03:00
Tusooa Zhu
ccfcf15d4f
Fix CommonAPITest 2022-07-27 14:59:53 +03:00
Tusooa Zhu
09fd030961
Use meta[:object_data] in SideEffects for Update 2022-07-27 14:59:24 +03:00
Tusooa Zhu
19f5f7c3f0
Convert incoming Updated object into Pleroma format 2022-07-27 14:59:24 +03:00
Tusooa Zhu
ab56283cc5
Add editing to features 2022-07-27 14:56:09 +03:00
Tusooa Zhu
97e9484e55
Show original status at the first of history 2022-07-27 14:55:38 +03:00
Tusooa Zhu
bcb70dca4f
Workaround with_index does not support function in Elixir 1.9 2022-07-27 14:55:38 +03:00
Tusooa Zhu
2e8ddd5e21
Send the correct update in streamer
get_create_by_ap_id_with_object() seems to fetch the old object.
Why this happens needs further investigation.
2022-07-27 14:55:38 +03:00
Tusooa Zhu
edbe714435
Expose history and source apis to anon users 2022-07-27 14:55:37 +03:00
Tusooa Zhu
670cbc368a
Fix incorrectly cached content after editing 2022-07-27 14:55:37 +03:00
Tusooa Zhu
41a003d117
Return the corresponding object id in attachment view 2022-07-27 14:55:37 +03:00
Tusooa Zhu
0d72051aa3
Add object id to uploaded attachments 2022-07-27 14:55:37 +03:00
Tusooa Zhu
c3fc04cdaa
Lint 2022-07-27 14:55:37 +03:00
Tusooa Zhu
bb016795ce
Return update notification in mastodon api 2022-07-27 14:55:37 +03:00
Tusooa Zhu
8a8b135f09
Create Update notifications 2022-07-27 14:55:36 +03:00
Tusooa Zhu
3865ed5e0b
Expose content type of status sources 2022-07-27 14:55:24 +03:00
Tusooa Zhu
3a24185dd4
Fix SideEffectsTest 2022-07-27 14:53:36 +03:00
Tusooa Zhu
d236c091ad
Show edited_at in MastodonAPI/show 2022-07-27 14:53:36 +03:00
Tusooa Zhu
920a5c7107
Test that own edits are streamed 2022-07-27 14:53:35 +03:00
Tusooa Zhu
a7bf1f27df
Stream out edits 2022-07-27 14:53:35 +03:00
Tusooa Zhu
3a4fd61bba
Inject history when object is refetched 2022-07-27 14:53:23 +03:00
Tusooa Zhu
8067ecad46
Strip internal fields in formerRepresentation 2022-07-27 14:53:23 +03:00
Tusooa Zhu
e6ab68c624
Implement mastodon api for editing status 2022-07-27 14:53:23 +03:00
Tusooa Zhu
f269e910ef
Implement viewing source 2022-07-27 14:53:23 +03:00
Tusooa Zhu
bc54d06588
Implement mastodon api for showing edit history 2022-07-27 14:53:23 +03:00
Tusooa Zhu
1109acba2f
Allow updating polls 2022-07-27 14:50:11 +03:00
Tusooa Zhu
3563671e43
Record edit history for Note and Question Updates 2022-07-27 14:50:11 +03:00
Tusooa Zhu
9d9e765db2
Handle Note and Question Updates 2022-07-27 14:50:02 +03:00
Tusooa Zhu
fb50f7ca7e
Allow Updates by every actor on the same origin 2022-07-27 14:49:29 +03:00
a3501cab86 ensure quote fetching obeys max thread distance (#119)
Reviewed-on: AkkomaGang/akkoma#119
2022-07-26 17:28:47 +00:00
2cde2052b8 Merge pull request 'don't error out if the featured collection has a string ID' (#118) from fix/collections-with-deleted-items into develop
Reviewed-on: AkkomaGang/akkoma#118
2022-07-26 14:20:42 +00:00
0a55c37182 don't error out if the featured collection has a string ID 2022-07-26 15:08:35 +01:00
1f6deb0ef4 include local instance in bubble timeline (#117)
Reviewed-on: AkkomaGang/akkoma#117
2022-07-26 12:22:49 +00:00
90c4785b89 remove public post quarantine exception (#114)
Reviewed-on: AkkomaGang/akkoma#114
2022-07-26 11:09:13 +00:00
1f8e5be051 Merge pull request 'add authorized_fetch_mode to description.exs' (#116) from document-secure-fetch into develop
Reviewed-on: AkkomaGang/akkoma#116
2022-07-26 10:04:24 +00:00
36eec89946 add authorized_fetch_mode to description.exs 2022-07-26 10:51:40 +01:00
1419eee5df Quote posting (#113)
Reviewed-on: AkkomaGang/akkoma#113
2022-07-25 16:30:06 +00:00
516d155558 open up functions in user 2022-07-24 17:56:48 +01:00
c4e9c4bc95 extend custom runtime system (#108)
Reviewed-on: AkkomaGang/akkoma#108
2022-07-24 16:42:43 +00:00
f9a7b456eb Merge pull request 'bump version for release' (#105) from version into develop
Reviewed-on: AkkomaGang/akkoma#105
2022-07-23 19:01:04 +00:00
8e94cbcac7 bump version for release 2022-07-23 20:00:38 +01:00
4c47992686 bugfix/follow-state (#104)
Reviewed-on: AkkomaGang/akkoma#104
2022-07-23 18:58:45 +00:00