fedipub 0.11.1 → 0.11.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/controllers/fedipub/rails/server/actors_controller.rb +1 -1
- data/app/controllers/fedipub/rails/server_controller.rb +1 -1
- data/app/views/fedipub/rails/server/actors/_actor.activitypub.jbuilder +1 -1
- data/lib/fedipub/version.rb +1 -1
- data/lib/fediverse/notifier.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 7639af84b0fd94d17f78a71b632f49a4c427fa06b506080444f9a4aedfb11283
|
|
4
|
+
data.tar.gz: cc546207b7e42da12d0e48620ae7d2ca36450bb2d30ca506e34b3477355345b0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1733d271950661a487f6bc2f18f53c9d43826fb970ce7fc1176f3a0309ef163019e52538506c1c69bdb4f662eb49cc871c17740e3d846ad7465d006c7ec358bd
|
|
7
|
+
data.tar.gz: 3e3215a5c83f758cf1a5907e68dd01565c953019e360b1d7397e60c2a2cbc8c3ebcf9eaf56828bc0e99a77d634dc4e4f42a0cf9834beeb49782680eeb3d9f27d
|
|
@@ -4,7 +4,7 @@ module Fedipub
|
|
|
4
4
|
class ActorsController < Fedipub::Rails::ServerController
|
|
5
5
|
include Fedipub::Rails::Server::RenderCollections
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
prepend_before_action :set_actor, only: [:show, :followers, :following]
|
|
8
8
|
|
|
9
9
|
# GET /federation/actors/1
|
|
10
10
|
# GET /federation/actors/1.json
|
|
@@ -19,7 +19,7 @@ module Fedipub
|
|
|
19
19
|
private
|
|
20
20
|
|
|
21
21
|
def verify_request_signature!
|
|
22
|
-
Fediverse::Signature.verify!(request: request, require_signature: ServerController.require_signature?)
|
|
22
|
+
Fediverse::Signature.verify!(request: request, require_signature: ServerController.require_signature?) unless @actor&.application_actor?
|
|
23
23
|
rescue Fedipub::Errors::BadSignature
|
|
24
24
|
head :unauthorized
|
|
25
25
|
end
|
|
@@ -16,7 +16,7 @@ json.endpoints do
|
|
|
16
16
|
end
|
|
17
17
|
json.followers actor.followers_url
|
|
18
18
|
json.following actor.followings_url
|
|
19
|
-
json.url actor.profile_url
|
|
19
|
+
json.url actor.application_actor? ? actor.federated_url : actor.profile_url
|
|
20
20
|
if actor.public_key
|
|
21
21
|
json.publicKey do
|
|
22
22
|
json.id actor.key_id
|
data/lib/fedipub/version.rb
CHANGED
data/lib/fediverse/notifier.rb
CHANGED