Browse Source

fix: share issue

KernelDeimos 2 weeks ago
parent
commit
518449cfdd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/backend/src/services/ShareService.js

+ 1 - 1
src/backend/src/services/ShareService.js

@@ -329,7 +329,7 @@ class ShareService extends BaseService {
                     return res.status(429).send('Too many requests.');
                 }
 
-                const actor = Actor.adapt(req.user);
+                const actor = req.actor;
                 if ( ! (actor.type instanceof UserActorType) ) {
                     throw APIError.create('forbidden');
                 }