Mark Felder
0022fa7d49
Add same optimized join for excluding invisible users
2 years ago
Mark Felder
11fc1beba5
Fix reports which do not have a user
...
The check for deactivated users was being applied to report activities.
2 years ago
floatingghost
e1e0d5d759
microblogpub federation fixes ( #288 )
...
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/288
2 years ago
Haelwenn (lanodan) Monnier
3e0a5851e5
Set instance reachable on fetch
2 years ago
floatingghost
2a1f17e3ed
and i yoink ( #275 )
...
Co-authored-by: Mark Felder <feld@feld.me>
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/275
2 years ago
floatingghost
c1127e321b
Add configurable timeline per oban job ( #273 )
...
Heavily inspired by https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3777
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/273
2 years ago
FloatingGhost
89dbc7177b
Chores for 2022.11
2 years ago
FloatingGhost
ac0c00cdee
Add media sources to connect-src if media proxy is enabled
2 years ago
FloatingGhost
bab1ab5b6c
strip \r and \r from content-disposition filenames
2 years ago
floatingghost
cc6a076202
Include requested_by in relationship ( #260 )
...
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/260
2 years ago
FloatingGhost
0681a26dbb
Remove unused pattern
2 years ago
FloatingGhost
4e8ab0deeb
fix count of poll voters
2 years ago
FloatingGhost
2e895b6c02
make metdata check a debug log
2 years ago
FloatingGhost
479aacb1b6
Add fallback for reports that don't have attached activities
2 years ago
FloatingGhost
a0b8e3c842
Don't mess with the cache on metadata update
2 years ago
FloatingGhost
7bbaa8f8e0
automatically trim loading *. prefixes on domain blocks
2 years ago
floatingghost
31ad09010e
Fix regex usage in MRF ( #254 )
...
fixes #235
fixes #228
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/254
2 years ago
FloatingGhost
5123b3a5dd
Add enabled check on /translation/languages
2 years ago
floatingghost
b7e8ce2350
Scrape instance nodeinfo ( #251 )
...
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/251
2 years ago
Thomas Citharel
4d0a51221a
Fix typo in CSP Report-To header name
...
The header name was Report-To, not Reply-To.
In any case, that's now being changed to the Reporting-Endpoints HTTP
Response Header.
https://w3c.github.io/reporting/#header
https://github.com/w3c/reporting/issues/177
CanIUse says the Report-To header is still supported by current Chrome
and friends.
https://caniuse.com/mdn-http_headers_report-to
It doesn't have any data for the Reporting-Endpoints HTTP header, but
this article says Chrome 96 supports it.
https://web.dev/reporting-api/
(Even though that's come out one year ago, that's not compatible with
Network Error Logging which's still using the Report-To version of the
API)
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
2 years ago
floatingghost
9038da01cc
Merge pull request 'Push.Impl: support edits' ( #244 ) from norm/akkoma:push-support-edits into develop
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/244
2 years ago
floatingghost
e44e147b54
Merge pull request 'fix flaky test_user_relationship_test.exs:81' ( #240 ) from ilja/akkoma:fix_flaky_test_user_relationship_test.exs_81 into develop
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/240
2 years ago
nullobsi
cbc693f832
Fix LDAP user registration ( #229 )
...
Simple fix for LDAP user registration. I'm not sure what changed but I managed to get Akkoma running in a debug session and figured out it was missing a match for an extra value at the end. I don't know Elixir all that well so I'm not sure if this was the correct way to do it... but it works. :)
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/229
Co-authored-by: nullobsi <me@nullob.si>
Co-committed-by: nullobsi <me@nullob.si>
2 years ago
marcin mikołajczak
6486211064
Push.Impl: support edits
...
Signed-off-by: marcin mikołajczak <git@mkljczk.pl>
2 years ago
ilja
3562eaeedc
fix flaky test_user_relationship_test.exs:81
...
The problem was double. On the one hand, the function didn't actually return what was in the DB.
On the other hand the test was flaky because it used NaiveDateTime.utc_now() so test could fail or pass depending on a difference of microseconds.
Both are fixed now.
2 years ago
floatingghost
f36d14818d
Unilateral remove from followers ( #232 )
...
from https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3647/
Co-authored-by: marcin mikołajczak <git@mkljczk.pl>
Co-authored-by: Tusooa Zhu <tusooa@kazv.moe>
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/232
2 years ago
floatingghost
edf7d5089f
Merge pull request 'Check that the signature matches the creator' ( #230 ) from domain-blocks into develop
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/230
2 years ago
FloatingGhost
03662501c3
Check that the signature matches the creator
2 years ago
FloatingGhost
856c57208b
Ensure deletes are handled after everything else
2 years ago
FloatingGhost
cb9b0d3720
optimise notifications query
2 years ago
FloatingGhost
8af50dea36
format
2 years ago
FloatingGhost
ca9e6ffc55
Use inner lateral join to not get dropped in :total
2 years ago
FloatingGhost
574f010bc8
Extract deactivated users query to a join
2 years ago
floatingghost
c6e63aaf6b
Backend settings sync ( #226 )
...
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/226
2 years ago
floatingghost
b2aa82cee5
Fix false error in meilisearch index ( #221 )
...
the schema changed
https://docs.meilisearch.com/reference/api/documents.html#add-or-update-documents
this wasn't breaking anything, it would just report errors that were actually successes
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/221
2 years ago
Norm
561e1f2470
Make backups require its own scope ( #218 )
...
Pulled from https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3721 .
This makes backups require its own scope (`read:backups`) instead of the `read:accounts` scope.
Co-authored-by: Tusooa Zhu <tusooa@kazv.moe>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/218
Co-authored-by: Norm <normandy@biribiri.dev>
Co-committed-by: Norm <normandy@biribiri.dev>
2 years ago
a1batross
77596a3021
User: search: exclude deactivated users from user search
...
This way we don't pollute search results with deactivated and deleted users
2 years ago
Tusooa Zhu
2aa8e66527
Fix User.get_or_fetch/1 with usernames starting with http
2 years ago
Hélène
1acd38fe7f
OAuthPlug: use user cache instead of joining
...
As this plug is called on every request, this should reduce load on the
database by not requiring to select on the users table every single
time, and to instead use the by-ID user cache whenever possible.
2 years ago
Hélène
3e2d15c71d
emoji-test: update to latest 15.0 draft
2 years ago
Hélène
8683252fc5
Metadata/Utils: use summary as description if set
...
When generating OpenGraph and TwitterCard metadata for a post, the
summary field will be used first if it is set to generate the post
description.
2 years ago
Hélène
0b14f02ed2
User: generate private keys on user creation
...
This fixes a race condition bug where keys could be regenerated
post-federation, causing activities and HTTP signatures from an user to
be dropped due to key differences.
2 years ago
Hélène
e88f36f72b
ObjectView: do not fetch an object for its ID
...
Non-Create/Listen activities had their associated object field
normalized and fetched, but only to use their `id` field, which is both
slow and redundant. This also failed on Undo activities, which delete
the associated object/activity in database.
Undo activities will now render properly and database loads should
improve ever so slightly.
2 years ago
Norm
a6d85003fe
Remote interaction with posts ( #198 )
...
Grabbed from https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3587
Co-authored-by: Tusooa Zhu <tusooa@kazv.moe>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/198
Co-authored-by: Norm <normandy@biribiri.dev>
Co-committed-by: Norm <normandy@biribiri.dev>
2 years ago
floatingghost
2641dcdd15
Post editing ( #202 )
...
Rebased from #103
Co-authored-by: Tusooa Zhu <tusooa@kazv.moe>
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/202
2 years ago
FloatingGhost
6c80977b06
turn inlineQuotePolicy on by default
2 years ago
FloatingGhost
f6304cfd78
add extra tests for builder
2 years ago
FloatingGhost
1c7d7845c3
fix compilation warnings
2 years ago
floatingghost
1b826eea54
Allow reacting with remote emoji when they exist on the post ( #200 )
...
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/200
2 years ago
floatingghost
7a90d71e8d
ensure .exs config is used before default ( #197 )
...
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/197
2 years ago
floatingghost
8e4de118c1
Don't persist local undone follow ( #194 )
...
same deal but backwards this time
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/194
2 years ago
floatingghost
decbca0c91
add seperate source and dest entries in language listing ( #193 )
...
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/193
2 years ago
floatingghost
c3fde9577d
Allow listing languages, setting source language ( #192 )
...
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/192
2 years ago
floatingghost
df39cab9c1
Automatic status translation ( #187 )
...
Fixes #115
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/187
2 years ago
Tusooa Zhu
95e4018c1a
Disconnect streaming sessions when token is revoked
...
Use Websockex to replace websocket_client
Test that server will disconnect websocket upon token revocation
Lint
Execute session disconnect in background
Refactor streamer test
allow multi-streams
rebase websocket change
2 years ago
floatingghost
772c209914
GTS: cherry-picks and collection usage ( #186 )
...
https://git.pleroma.social/pleroma/pleroma/-/merge_requests/3725?commit_id=61254111e59f02118cad15de49d1e0704c07030e
what is this, a yoink of a yoink? good times
Co-authored-by: Hélène <pleroma-dev@helene.moe>
Co-authored-by: FloatingGhost <hannah@coffee-and-dreams.uk>
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/186
2 years ago
FloatingGhost
85137f591f
Add ability to obfuscate domains in MRF transparency
2 years ago
floatingghost
e4f2251e0f
Add support for setting language in instance metadata ( #183 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/183
2 years ago
floatingghost
618cf7ff7f
reuse valid oauth tokens ( #182 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/182
2 years ago
floatingghost
92ba2802fb
generate-keys-at-registration-time ( #181 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/181
2 years ago
FloatingGhost
8d7b63a766
Revert "Fix oauth2 (for real) ( #179 )"
...
This reverts commit aa681d7e15
.
2 years ago
floatingghost
aa681d7e15
Fix oauth2 (for real) ( #179 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/179
2 years ago
FloatingGhost
b0130bfa7b
Revert "oauth2 fixes ( #177 )"
...
This reverts commit 429e2ac832
.
2 years ago
floatingghost
d72f9e39d9
add visibility check on quote ( #178 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/178
2 years ago
floatingghost
429e2ac832
oauth2 fixes ( #177 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/177
2 years ago
floatingghost
e9f1897cfd
parser MFM server-side ( #172 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/172
2 years ago
floatingghost
aaf78e2b52
only put linked mfm in source ( #171 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/171
2 years ago
floatingghost
11ec9daa5b
API compatibility with fedibird, frontend config ( #163 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/163
2 years ago
floatingghost
89ffc01c23
only return create objects for ES search ( #165 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/165
2 years ago
floatingghost
61641957cb
fix compatibility with meilisearch ( #164 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/164
2 years ago
floatingghost
37a1001b97
add finch outbound proxy support ( #158 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/158
2 years ago
FloatingGhost
d3b9cfb03f
use :discard instead of cancel
2 years ago
FloatingGhost
55179d4214
set soapbox-fe v2 by default
...
fixes #157
2 years ago
floatingghost
1245141779
treat rejections in MRF as a reject in federator ( #155 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/155
2 years ago
FloatingGhost
5d23df84c9
Mix format
2 years ago
Hélène
b3e4d81362
StatusView: implement pleroma.context field
...
This field replaces the now deprecated conversation_id field, and now
exposes the ActivityPub object `context` directly via the MastoAPI
instead of relying on StatusNet-era data concepts.
2 years ago
Hélène
b9bb093600
StatusView: clear MSB on calculated conversation_id
...
This field seems to be a left-over from the StatusNet era.
If your application uses `pleroma.conversation_id`: this field is
deprecated.
It is currently stubbed instead by doing a CRC32 of the context, and
clearing the MSB to avoid overflow exceptions with signed integers on
the different clients using this field (Java/Kotlin code, mostly; see
Husky and probably other mobile clients.)
This should be removed in a future version of Pleroma. Pleroma-FE
currently depends on this field, as well.
2 years ago
floatingghost
62e179f446
make conversation-id deterministic ( #154 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/154
2 years ago
floatingghost
ec162b496b
/notice signing checks on redirect ( #150 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/150
2 years ago
floatingghost
0ec3a11895
don't persist undo of follows ( #149 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/149
2 years ago
floatingghost
a82fb2acc1
Merge pull request 'Update default paths' ( #141 ) from norm/akkoma:update-default-paths into develop
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/141
2 years ago
Hélène
c1e15ff6f8
Transmogrifier: fix reply context fixing
...
Incoming Pleroma replies to a Misskey thread were rejected due to a
broken context fix, which caused them to not be visible until a
non-Pleroma user interacted with the replies.
This fix properly sets the post-fix object context to its parent Create
activity as well, if it was changed.
2 years ago
floatingghost
456c97fda9
Merge pull request 'remove unneeded function' ( #143 ) from compile-fix into develop
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/143
2 years ago
floatingghost
842ab82ef0
Merge pull request 'Allow users to create backups without providing email address' ( #140 ) from norm/akkoma:backup-without-email into develop
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/140
2 years ago
Norm
2c40d565fa
Fix config path lookup ( #139 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/139
Co-authored-by: Norm <normandy@biribiri.dev>
Co-committed-by: Norm <normandy@biribiri.dev>
2 years ago
FloatingGhost
359510eebc
remove unneeded function
2 years ago
Francis Dinh
8bfd01b9c7
Update default paths
2 years ago
Tusooa Zhu
f08241c8ab
Allow users to create backups without providing email address
...
Ref: backup-without-email
2 years ago
floatingghost
c9600dbbbf
local-only-fixed ( #138 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/138
2 years ago
floatingghost
ca000f8301
Merge mrf_simple-reject with quarantine ( #137 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/137
2 years ago
Joel Beckmeyer
e26388a01c
Support reaching user@sub.domain.tld at user@domain.tld ( #134 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/134
Co-authored-by: Joel Beckmeyer <joel@beckmeyer.us>
Co-committed-by: Joel Beckmeyer <joel@beckmeyer.us>
2 years ago
floatingghost
c3eea8dc7d
expose bubble instances via nodeinfo ( #136 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/136
2 years ago
floatingghost
19a27ff006
allow small/center tags in misskeymarkdown ( #132 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/132
2 years ago
Yukkuri
38659e5610
Use uppercase HTTP HEAD method for media preview proxy request ( #128 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/128
Co-authored-by: Yukkuri <iamtakingiteasy@eientei.org>
Co-committed-by: Yukkuri <iamtakingiteasy@eientei.org>
2 years ago
FloatingGhost
2033d7d4fc
ensure extra info in fix_follow_state prints
2 years ago
FloatingGhost
db99edacfe
do the same for soapbox
2 years ago
FloatingGhost
4f6caae209
ensure we can't run the same clause of fix_quote_url more than once
2 years ago
FloatingGhost
bf3f934275
add guards around fix misskey content
2 years ago
floatingghost
405406601f
Fix emoji qualification ( #124 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/124
2 years ago
floatingghost
2796a9acaf
backend-i18n ( #121 )
...
Reviewed-on: https://akkoma.dev/AkkomaGang/akkoma/pulls/121
2 years ago