1313use OCP \AppFramework \Http \Attribute \FrontpageRoute ;
1414use OCP \AppFramework \Http \Attribute \NoAdminRequired ;
1515use OCP \AppFramework \Http \Attribute \NoCSRFRequired ;
16+ use OCP \AppFramework \Http \Attribute \NoSameSiteCookieRequired ;
1617use OCP \AppFramework \Http \Attribute \OpenAPI ;
1718use OCP \AppFramework \Http \Attribute \PublicPage ;
1819use OCP \AppFramework \Http \FileDisplayResponse ;
@@ -50,8 +51,6 @@ public function __construct(
5051 }
5152
5253 /**
53- * @NoSameSiteCookieRequired
54- *
5554 * Get the dark avatar
5655 *
5756 * @param string $userId ID of the user
@@ -67,6 +66,7 @@ public function __construct(
6766 #[PublicPage]
6867 #[FrontpageRoute(verb: 'GET ' , url: '/avatar/{userId}/{size}/dark ' )]
6968 #[OpenAPI(scope: OpenAPI::SCOPE_DEFAULT )]
69+ #[NoSameSiteCookieRequired]
7070 public function getAvatarDark (string $ userId , int $ size , bool $ guestFallback = false ) {
7171 if ($ size <= 64 ) {
7272 if ($ size !== 64 ) {
@@ -102,8 +102,6 @@ public function getAvatarDark(string $userId, int $size, bool $guestFallback = f
102102
103103
104104 /**
105- * @NoSameSiteCookieRequired
106- *
107105 * Get the avatar
108106 *
109107 * @param string $userId ID of the user
@@ -119,6 +117,7 @@ public function getAvatarDark(string $userId, int $size, bool $guestFallback = f
119117 #[PublicPage]
120118 #[FrontpageRoute(verb: 'GET ' , url: '/avatar/{userId}/{size} ' )]
121119 #[OpenAPI(scope: OpenAPI::SCOPE_DEFAULT )]
120+ #[NoSameSiteCookieRequired]
122121 public function getAvatar (string $ userId , int $ size , bool $ guestFallback = false ) {
123122 if ($ size <= 64 ) {
124123 if ($ size !== 64 ) {
0 commit comments