Jelajahi Sumber

Merge pull request #3473 from pixelfed/staging

Staging
daniel 3 tahun lalu
induk
melakukan
54f4cac9c2
63 mengubah file dengan 178 tambahan dan 115 penghapusan
  1. 3 1
      .env.docker
  2. 2 0
      .env.example
  3. 2 0
      .env.testing
  4. 8 0
      CHANGELOG.md
  5. 0 1
      app/Console/Commands/Installer.php
  6. 1 1
      app/Http/Controllers/AdminController.php
  7. 1 12
      app/Http/Controllers/DirectMessageController.php
  8. 5 5
      app/Http/Controllers/SiteController.php
  9. 1 4
      app/Transformer/ActivityPub/ProfileTransformer.php
  10. 22 7
      app/Transformer/ActivityPub/Verb/CreateNote.php
  11. 24 7
      app/Transformer/ActivityPub/Verb/CreateQuestion.php
  12. 22 7
      app/Transformer/ActivityPub/Verb/Note.php
  13. 69 52
      app/Transformer/ActivityPub/Verb/Question.php
  14. 0 1
      app/Transformer/Api/Mastodon/v1/StatusTransformer.php
  15. 1 0
      app/Util/ActivityPub/Inbox.php
  16. 1 1
      config/database.php
  17. 1 2
      config/exp.php
  18. 1 1
      config/horizon.php
  19. 1 1
      config/trustedproxy.php
  20. TEMPAT SAMPAH
      public/js/compose-mh8cayo8d.js
  21. TEMPAT SAMPAH
      public/js/daci-mh8cayo8d.js
  22. TEMPAT SAMPAH
      public/js/daci-nza92p6rg.js
  23. TEMPAT SAMPAH
      public/js/dffc-mh8cayo8d.js
  24. TEMPAT SAMPAH
      public/js/dffc-nza92p6rg.js
  25. TEMPAT SAMPAH
      public/js/discover-mh8cayo8d.js
  26. TEMPAT SAMPAH
      public/js/dms-mh8cayo8d.js
  27. TEMPAT SAMPAH
      public/js/dmsg-mh8cayo8d.js
  28. TEMPAT SAMPAH
      public/js/dmyh-mh8cayo8d.js
  29. TEMPAT SAMPAH
      public/js/dmyh-nza92p6rg.js
  30. TEMPAT SAMPAH
      public/js/dmym-mh8cayo8d.js
  31. TEMPAT SAMPAH
      public/js/dmym-nza92p6rg.js
  32. TEMPAT SAMPAH
      public/js/dsfc-mh8cayo8d.js
  33. TEMPAT SAMPAH
      public/js/dsfc-nza92p6rg.js
  34. TEMPAT SAMPAH
      public/js/dssc-mh8cayo8d.js
  35. TEMPAT SAMPAH
      public/js/dssc-nza92p6rg.js
  36. TEMPAT SAMPAH
      public/js/home-mh8cayo8d.js
  37. TEMPAT SAMPAH
      public/js/home-nza92p6rg.js
  38. TEMPAT SAMPAH
      public/js/loops.js
  39. TEMPAT SAMPAH
      public/js/manifest.js
  40. TEMPAT SAMPAH
      public/js/notifications-mh8cayo8d.js
  41. TEMPAT SAMPAH
      public/js/post-mh8cayo8d.js
  42. TEMPAT SAMPAH
      public/js/post-nza92p6rg.js
  43. TEMPAT SAMPAH
      public/js/profile-mh8cayo8d.js
  44. TEMPAT SAMPAH
      public/js/profile-nza92p6rg.js
  45. TEMPAT SAMPAH
      public/js/profile.js
  46. TEMPAT SAMPAH
      public/js/rempos.js
  47. TEMPAT SAMPAH
      public/js/rempro.js
  48. TEMPAT SAMPAH
      public/js/spa.js
  49. TEMPAT SAMPAH
      public/js/status.js
  50. TEMPAT SAMPAH
      public/js/timeline.js
  51. TEMPAT SAMPAH
      public/js/vendor.js
  52. TEMPAT SAMPAH
      public/mix-manifest.json
  53. 0 1
      resources/assets/js/components/PostComponent.vue
  54. 0 1
      resources/assets/js/components/RemotePost.vue
  55. 1 1
      resources/assets/js/components/partials/PollCard.vue
  56. 0 1
      resources/lang/fi/profile.php
  57. 5 0
      resources/views/admin/diagnostics/home.blade.php
  58. 1 1
      resources/views/profile/embed.blade.php
  59. 2 3
      resources/views/settings/avatar.blade.php
  60. 1 1
      resources/views/settings/email.blade.php
  61. 1 1
      resources/views/settings/password.blade.php
  62. 1 1
      resources/views/settings/template.blade.php
  63. 1 1
      resources/views/status/embed.blade.php

+ 3 - 1
.env.docker

@@ -83,6 +83,8 @@ REDIS_PASSWORD=redis_password
 REDIS_PORT=6379
 REDIS_DATABASE=0
 
+HORIZON_PREFIX="horizon-"
+
 ## EXPERIMENTS 
 EXP_LC=false
 EXP_REC=false
@@ -145,4 +147,4 @@ TRUST_PROXIES="*"
 
 ## Passport
 #PASSPORT_PRIVATE_KEY=
-#PASSPORT_PUBLIC_KEY=
+#PASSPORT_PUBLIC_KEY=

+ 2 - 0
.env.example

@@ -23,6 +23,8 @@ CACHE_DRIVER=redis
 SESSION_DRIVER=redis
 QUEUE_DRIVER=redis
 
+HORIZON_PREFIX="horizon-"
+
 REDIS_SCHEME=tcp
 REDIS_HOST=127.0.0.1
 REDIS_PASSWORD=null

+ 2 - 0
.env.testing

@@ -28,6 +28,8 @@ REDIS_HOST=127.0.0.1
 REDIS_PASSWORD=null
 REDIS_PORT=6379
 
+HORIZON_PREFIX="horizon-"
+
 MAIL_DRIVER=log
 MAIL_HOST=smtp.mailtrap.io
 MAIL_PORT=2525

+ 8 - 0
CHANGELOG.md

@@ -2,13 +2,21 @@
 
 ## [Unreleased](https://github.com/pixelfed/pixelfed/compare/v0.11.3...dev)
 
+### Breaking
+- Replaced `predis` with `phpredis` as default redis driver due to predis being deprecated, install [phpredis](https://github.com/phpredis/phpredis/blob/develop/INSTALL.markdown) if you're still using predis.
+
 ### Updates
 - Improve S3 support by removing `ListObjects` call in media deletion ([#3438](https://github.com/pixelfed/pixelfed/pull/3438))
 - Enforce UTC in incoming activities ([18931a1f](https://github.com/pixelfed/pixelfed/commit/18931a1f))
 - Add storage flags to admin dashboard diagnostics ([#3444](https://github.com/pixelfed/pixelfed/pull/3444))
 - Hardcode UTC application timezone to prevent timezone issues ([b0d2c5e1](https://github.com/pixelfed/pixelfed/commit/b0d2c5e1))
 - Remove arbitrary metro url redirect timeout ([84209c24](https://github.com/pixelfed/pixelfed/commit/84209c24))
+- Fix JSON-LD contexts ([#3464](https://github.com/pixelfed/pixelfed/pull/3464))
+- Fix json-ld attributes, fixes #3423 ([95f902b1](https://github.com/pixelfed/pixelfed/commit/95f902b1))
+- Add trusted proxies flag to admin dashboard diagnostics ([#3450](https://github.com/pixelfed/pixelfed/pull/3450))
 - Fix json-ld attributes, fixes #3423 ([95f902b1](https://github.com/pixelfed/pixelfed/commit/95f902b1))
+- Update exp config, enforce mastoapi compatibility by default ([a160b233](https://github.com/pixelfed/pixelfed/commit/a160b233))
+- Update home timeline, redirect to /i/web unless force_old_ui is presen ([5ff4730f](https://github.com/pixelfed/pixelfed/commit/5ff4730f))
 
 ## [v0.11.3 (2022-05-09)](https://github.com/pixelfed/pixelfed/compare/v0.11.2...v0.11.3)
 

+ 0 - 1
app/Console/Commands/Installer.php

@@ -97,7 +97,6 @@ class Installer extends Command
             if(extension_loaded($ext) == false) {
                 $this->error("- {$ext} extension not found, aborting installation");
                 exit;
-            } else {
             }
         }
         $this->info("- Required PHP extensions found!");

+ 1 - 1
app/Http/Controllers/AdminController.php

@@ -120,7 +120,7 @@ class AdminController extends Controller
 	public function appsHome(Request $request)
 	{
 		$filter = $request->input('filter');
-		if(in_array($filter, ['revoked'])) {
+		if($filter == 'revoked') {
 			$apps = OauthClient::with('user')
 			->whereNotNull('user_id')
 			->whereRevoked(true)

+ 1 - 12
app/Http/Controllers/DirectMessageController.php

@@ -796,13 +796,8 @@ class DirectMessageController extends Controller
 
 		$body = [
 			'@context' => [
-				'https://www.w3.org/ns/activitystreams',
 				'https://w3id.org/security/v1',
-				[
-					'sc'                => 'http://schema.org#',
-					'Hashtag'           => 'as:Hashtag',
-					'sensitive'         => 'as:sensitive',
-				]
+				'https://www.w3.org/ns/activitystreams',
 			],
 			'id'                    => $dm->status->permalink(),
 			'type'                  => 'Create',
@@ -845,12 +840,6 @@ class DirectMessageController extends Controller
 		$body = [
 			'@context' => [
 				'https://www.w3.org/ns/activitystreams',
-				'https://w3id.org/security/v1',
-				[
-					'sc'				=> 'http://schema.org#',
-					'Hashtag'			=> 'as:Hashtag',
-					'sensitive'			=> 'as:sensitive',
-				]
 			],
 			'id' => $dm->status->permalink('#delete'),
 			'to' => [

+ 5 - 5
app/Http/Controllers/SiteController.php

@@ -29,11 +29,11 @@ class SiteController extends Controller
 
 	public function homeTimeline(Request $request)
 	{
-		$this->validate($request, [
-			'layout' => 'nullable|string|in:grid,feed'
-		]);
-		$layout = $request->input('layout', 'feed');
-		return view('timeline.home', compact('layout'));
+		if($request->has('force_old_ui')) {
+			return view('timeline.home', ['layout' => 'feed']);
+		}
+
+		return redirect('/i/web');
 	}
 
 	public function changeLocale(Request $request, $locale)

+ 1 - 4
app/Transformer/ActivityPub/ProfileTransformer.php

@@ -11,13 +11,10 @@ class ProfileTransformer extends Fractal\TransformerAbstract
     {
         return [
           '@context' => [
-            'https://www.w3.org/ns/activitystreams',
             'https://w3id.org/security/v1',
+            'https://www.w3.org/ns/activitystreams',
             [
               'manuallyApprovesFollowers' => 'as:manuallyApprovesFollowers',
-              'PropertyValue'             => 'schema:PropertyValue',
-              'schema'                    => 'http://schema.org#',
-              'value'                     => 'schema:value'
             ],
           ],
           'id'                        => $profile->permalink(),

+ 22 - 7
app/Transformer/ActivityPub/Verb/CreateNote.php

@@ -53,17 +53,32 @@ class CreateNote extends Fractal\TransformerAbstract
 
 		return [
 			'@context' => [
-				'https://www.w3.org/ns/activitystreams',
 				'https://w3id.org/security/v1',
+				'https://www.w3.org/ns/activitystreams',
 				[
-					'sc'				=> 'http://schema.org#',
 					'Hashtag' 			=> 'as:Hashtag',
 					'sensitive' 		=> 'as:sensitive',
-					'commentsEnabled' 	=> 'sc:Boolean',
-					'@capabilities'		=> [
-						'@announce'			=> '@id',
-						'@like'				=> '@id',
-						'@reply'			=> '@id',
+					'schema' 		=> 'http://schema.org/',
+					'pixelfed' 		=> 'http://pixelfed.org/ns#'
+					'commentsEnabled' 	=> [
+						'@id' 		=> 'pixelfed:commentsEnabled',
+						'@type' 		=> 'schema:Boolean'
+					],
+					'capabilities'		=> [
+						'@id' 		=> 'pixelfed:capabilities',
+						'@container' => '@set'
+					],
+					'announce'		=> [
+						'@id' 		=> 'pixelfed:canAnnounce',
+						'@type' => '@id'
+					],
+					'like'		=> [
+						'@id' 		=> 'pixelfed:canLike',
+						'@type' => '@id'
+					],
+					'reply'		=> [
+						'@id' 		=> 'pixelfed:canReply',
+						'@type' => '@id'
 					],
 					'toot' 				=> 'http://joinmastodon.org/ns#',
 					'Emoji'				=> 'toot:Emoji'

+ 24 - 7
app/Transformer/ActivityPub/Verb/CreateQuestion.php

@@ -16,18 +16,35 @@ class CreateQuestion extends Fractal\TransformerAbstract
 	{
 		return [
 			'@context' => [
-				'https://www.w3.org/ns/activitystreams',
 				'https://w3id.org/security/v1',
+				'https://www.w3.org/ns/activitystreams',
 				[
-					'sc'				=> 'http://schema.org#',
 					'Hashtag' 			=> 'as:Hashtag',
 					'sensitive' 		=> 'as:sensitive',
-					'commentsEnabled' 	=> 'sc:Boolean',
-					'@capabilities'		=> [
-						'@announce'			=> '@id',
-						'@like'				=> '@id',
-						'@reply'			=> '@id',
+					'schema' 		=> 'http://schema.org/',
+					'pixelfed' 		=> 'http://pixelfed.org/ns#'
+					'commentsEnabled' 	=> [
+						'@id' 		=> 'pixelfed:commentsEnabled',
+						'@type' 		=> 'schema:Boolean'
+					],
+					'capabilities'		=> [
+						'@id' 		=> 'pixelfed:capabilities',
+						'@container' => '@set'
+					],
+					'announce'		=> [
+						'@id' 		=> 'pixelfed:canAnnounce',
+						'@type' => '@id'
+					],
+					'like'		=> [
+						'@id' 		=> 'pixelfed:canLike',
+						'@type' => '@id'
+					],
+					'reply'		=> [
+						'@id' 		=> 'pixelfed:canReply',
+						'@type' => '@id'
 					],
+					'toot' 				=> 'http://joinmastodon.org/ns#',
+					'Emoji'				=> 'toot:Emoji'
 				]
 			],
 			'id' 					=> $status->permalink(),

+ 22 - 7
app/Transformer/ActivityPub/Verb/Note.php

@@ -54,17 +54,32 @@ class Note extends Fractal\TransformerAbstract
 
 		return [
 			'@context' => [
-				'https://www.w3.org/ns/activitystreams',
 				'https://w3id.org/security/v1',
+				'https://www.w3.org/ns/activitystreams',
 				[
-					'sc'				=> 'http://schema.org#',
 					'Hashtag' 			=> 'as:Hashtag',
 					'sensitive' 		=> 'as:sensitive',
-					'commentsEnabled' 	=> 'sc:Boolean',
-					'@capabilities'		=> [
-						'@announce'			=> '@id',
-						'@like'				=> '@id',
-						'@reply'			=> '@id',
+					'schema' 		=> 'http://schema.org/',
+					'pixelfed' 		=> 'http://pixelfed.org/ns#'
+					'commentsEnabled' 	=> [
+						'@id' 		=> 'pixelfed:commentsEnabled',
+						'@type' 		=> 'schema:Boolean'
+					],
+					'capabilities'		=> [
+						'@id' 		=> 'pixelfed:capabilities',
+						'@container' => '@set'
+					],
+					'announce'		=> [
+						'@id' 		=> 'pixelfed:canAnnounce',
+						'@type' => '@id'
+					],
+					'like'		=> [
+						'@id' 		=> 'pixelfed:canLike',
+						'@type' => '@id'
+					],
+					'reply'		=> [
+						'@id' 		=> 'pixelfed:canReply',
+						'@type' => '@id'
 					],
 					'toot' 				=> 'http://joinmastodon.org/ns#',
 					'Emoji'				=> 'toot:Emoji'

+ 69 - 52
app/Transformer/ActivityPub/Verb/Question.php

@@ -32,58 +32,75 @@ class Question extends Fractal\TransformerAbstract
 		$tags = array_merge($mentions, $hashtags);
 
 		return [
-				'@context' => [
-					'https://www.w3.org/ns/activitystreams',
-					'https://w3id.org/security/v1',
-					[
-						'sc'				=> 'http://schema.org#',
-						'Hashtag' 			=> 'as:Hashtag',
-						'sensitive' 		=> 'as:sensitive',
-						'commentsEnabled' 	=> 'sc:Boolean',
-						'@capabilities'		=> [
-							'@announce'			=> '@id',
-							'@like'				=> '@id',
-							'@reply'			=> '@id',
-						],
+			'@context' => [
+				'https://w3id.org/security/v1',
+				'https://www.w3.org/ns/activitystreams',
+				[
+					'Hashtag' 			=> 'as:Hashtag',
+					'sensitive' 		=> 'as:sensitive',
+					'schema' 		=> 'http://schema.org/',
+					'pixelfed' 		=> 'http://pixelfed.org/ns#'
+					'commentsEnabled' 	=> [
+						'@id' 		=> 'pixelfed:commentsEnabled',
+						'@type' 		=> 'schema:Boolean'
+					],
+					'capabilities'		=> [
+						'@id' 		=> 'pixelfed:capabilities',
+						'@container' => '@set'
+					],
+					'announce'		=> [
+						'@id' 		=> 'pixelfed:canAnnounce',
+						'@type' => '@id'
+					],
+					'like'		=> [
+						'@id' 		=> 'pixelfed:canLike',
+						'@type' => '@id'
+					],
+					'reply'		=> [
+						'@id' 		=> 'pixelfed:canReply',
+						'@type' => '@id'
+					],
+					'toot' 				=> 'http://joinmastodon.org/ns#',
+					'Emoji'				=> 'toot:Emoji'
+				]
+			],
+			'id' 				=> $status->url(),
+			'type' 				=> 'Question',
+			'summary'   		=> null,
+			'content'   		=> $status->rendered ?? $status->caption,
+			'inReplyTo' 		=> $status->in_reply_to_id ? $status->parent()->url() : null,
+			'published'    		=> $status->created_at->toAtomString(),
+			'url'          		=> $status->url(),
+			'attributedTo' 		=> $status->profile->permalink(),
+			'to'           		=> $status->scopeToAudience('to'),
+			'cc' 				=> $status->scopeToAudience('cc'),
+			'sensitive'       	=> (bool) $status->is_nsfw,
+			'attachment'      	=> [],
+			'tag' 				=> $tags,
+			'commentsEnabled'  => (bool) !$status->comments_disabled,
+			'capabilities' => [
+				'announce' => 'https://www.w3.org/ns/activitystreams#Public',
+				'like' => 'https://www.w3.org/ns/activitystreams#Public',
+				'reply' => $status->comments_disabled == true ? null : 'https://www.w3.org/ns/activitystreams#Public'
+			],
+			'location' => $status->place_id ? [
+					'type' => 'Place',
+					'name' => $status->place->name,
+					'longitude' => $status->place->long,
+					'latitude' => $status->place->lat,
+					'country' => $status->place->country
+				] : null,
+			'endTime' => $status->poll->expires_at->toAtomString(),
+			'oneOf' => collect($status->poll->poll_options)->map(function($option, $index) use($status) {
+				return [
+					'type' => 'Note',
+					'name' => $option,
+					'replies' => [
+						'type' => 'Collection',
+						'totalItems' => $status->poll->cached_tallies[$index]
 					]
-				],
-				'id' 				=> $status->url(),
-				'type' 				=> 'Question',
-				'summary'   		=> null,
-				'content'   		=> $status->rendered ?? $status->caption,
-				'inReplyTo' 		=> $status->in_reply_to_id ? $status->parent()->url() : null,
-				'published'    		=> $status->created_at->toAtomString(),
-				'url'          		=> $status->url(),
-				'attributedTo' 		=> $status->profile->permalink(),
-				'to'           		=> $status->scopeToAudience('to'),
-				'cc' 				=> $status->scopeToAudience('cc'),
-				'sensitive'       	=> (bool) $status->is_nsfw,
-				'attachment'      	=> [],
-				'tag' 				=> $tags,
-				'commentsEnabled'  => (bool) !$status->comments_disabled,
-				'capabilities' => [
-					'announce' => 'https://www.w3.org/ns/activitystreams#Public',
-					'like' => 'https://www.w3.org/ns/activitystreams#Public',
-					'reply' => $status->comments_disabled == true ? null : 'https://www.w3.org/ns/activitystreams#Public'
-				],
-				'location' => $status->place_id ? [
-						'type' => 'Place',
-						'name' => $status->place->name,
-						'longitude' => $status->place->long,
-						'latitude' => $status->place->lat,
-						'country' => $status->place->country
-					] : null,
-				'endTime' => $status->poll->expires_at->toAtomString(),
-				'oneOf' => collect($status->poll->poll_options)->map(function($option, $index) use($status) {
-					return [
-						'type' => 'Note',
-						'name' => $option,
-						'replies' => [
-							'type' => 'Collection',
-							'totalItems' => $status->poll->cached_tallies[$index]
-						]
-					];
-				})
-			];
+				];
+			})
+		];
 	}
 }

+ 0 - 1
app/Transformer/Api/Mastodon/v1/StatusTransformer.php

@@ -38,7 +38,6 @@ class StatusTransformer extends Fractal\TransformerAbstract
 				'website'   => null
 			 ],
 			'mentions'                  => [],
-			'tags'                      => [],
 			'emojis'                    => [],
 			'card'                      => null,
 			'poll'                      => null,

+ 1 - 0
app/Util/ActivityPub/Inbox.php

@@ -667,6 +667,7 @@ class Inbox
 					if($story) {
 						StoryExpire::dispatch($story)->onQueue('story');
 					}
+					break;
 
 				default:
 					return;

+ 1 - 1
config/database.php

@@ -107,7 +107,7 @@ return [
 
     'redis' => [
 
-        'client' => env('REDIS_CLIENT', 'predis'),
+        'client' => env('REDIS_CLIENT', 'phpredis'),
 
         'default' => [
             'scheme'   => env('REDIS_SCHEME', 'tcp'),

+ 1 - 2
config/exp.php

@@ -32,6 +32,5 @@ return [
 	'spa' => true,
 
 	// Enforce Mastoapi Compatibility (alpha)
-	// Note: this may break 3rd party apps who use non-mastodon compliant fields
-	'emc' => env('EXP_EMC', false),
+	'emc' => env('EXP_EMC', true),
 ];

+ 1 - 1
config/horizon.php

@@ -52,7 +52,7 @@ return [
 	|
 	*/
 
-	'prefix' => env('HORIZON_PREFIX', 'horizon-'.str_random(8).':'),
+	'prefix' => env('HORIZON_PREFIX', 'horizon-'),
 
 	/*
 	|--------------------------------------------------------------------------

+ 1 - 1
config/trustedproxy.php

@@ -23,5 +23,5 @@ return [
      * how many proxies that client's request has
      * subsequently passed through.
      */
-    'proxies' => env('TRUST_PROXIES', ''),
+    'proxies' => env('TRUST_PROXIES', '*'),
 ];

TEMPAT SAMPAH
public/js/compose-nza92p6rg.js → public/js/compose-mh8cayo8d.js


TEMPAT SAMPAH
public/js/daci-mh8cayo8d.js


TEMPAT SAMPAH
public/js/daci-nza92p6rg.js


TEMPAT SAMPAH
public/js/dffc-mh8cayo8d.js


TEMPAT SAMPAH
public/js/dffc-nza92p6rg.js


TEMPAT SAMPAH
public/js/discover-mh8cayo8d.js


TEMPAT SAMPAH
public/js/dms-mh8cayo8d.js


TEMPAT SAMPAH
public/js/dmsg-mh8cayo8d.js


TEMPAT SAMPAH
public/js/dmyh-mh8cayo8d.js


TEMPAT SAMPAH
public/js/dmyh-nza92p6rg.js


TEMPAT SAMPAH
public/js/dmym-mh8cayo8d.js


TEMPAT SAMPAH
public/js/dmym-nza92p6rg.js


TEMPAT SAMPAH
public/js/dsfc-mh8cayo8d.js


TEMPAT SAMPAH
public/js/dsfc-nza92p6rg.js


TEMPAT SAMPAH
public/js/dssc-mh8cayo8d.js


TEMPAT SAMPAH
public/js/dssc-nza92p6rg.js


TEMPAT SAMPAH
public/js/home-mh8cayo8d.js


TEMPAT SAMPAH
public/js/home-nza92p6rg.js


TEMPAT SAMPAH
public/js/loops.js


TEMPAT SAMPAH
public/js/manifest.js


TEMPAT SAMPAH
public/js/notifications-mh8cayo8d.js


TEMPAT SAMPAH
public/js/post-mh8cayo8d.js


TEMPAT SAMPAH
public/js/post-nza92p6rg.js


TEMPAT SAMPAH
public/js/profile-mh8cayo8d.js


TEMPAT SAMPAH
public/js/profile-nza92p6rg.js


TEMPAT SAMPAH
public/js/profile.js


TEMPAT SAMPAH
public/js/rempos.js


TEMPAT SAMPAH
public/js/rempro.js


TEMPAT SAMPAH
public/js/spa.js


TEMPAT SAMPAH
public/js/status.js


TEMPAT SAMPAH
public/js/timeline.js


TEMPAT SAMPAH
public/js/vendor.js


TEMPAT SAMPAH
public/mix-manifest.json


+ 0 - 1
resources/assets/js/components/PostComponent.vue

@@ -735,7 +735,6 @@ export default {
 						layout: this.profileLayout,
 						showProfileMorePosts: false,
 						profileMorePosts: [],
-						replySending: false,
 						reactionBarLoading: true,
 						tributeSettings: {
 							collection: [

+ 0 - 1
resources/assets/js/components/RemotePost.vue

@@ -614,7 +614,6 @@ export default {
 						layout: this.profileLayout,
 						showProfileMorePosts: false,
 						profileMorePosts: [],
-						replySending: false,
 						reactionBarLoading: true,
 						profileUrl: null,
 						currentLayout: 'status'

+ 1 - 1
resources/assets/js/components/partials/PollCard.vue

@@ -98,7 +98,7 @@
 							<div>
 								<p class="mb-0 small text-lighter font-weight-bold d-flex justify-content-between">
 									<span>{{ status.poll.votes_count }} votes</span>
-									<a v-if="tab != 'results' && authenticated && !activeRefreshTimeout & status.poll.expired != true && status.poll.voted" class="text-lighter" @click.prevent="refreshResults()" href="#">Refresh Results</a>
+									<a v-if="tab != 'results' && authenticated && !activeRefreshTimeout && status.poll.expired != true && status.poll.voted" class="text-lighter" @click.prevent="refreshResults()" href="#">Refresh Results</a>
 									<span v-if="tab != 'results' && authenticated && refreshingResults" class="text-lighter">
 										<div class="spinner-border spinner-border-sm" role="status">
 											<span class="sr-only">Loading...</span>

+ 0 - 1
resources/lang/fi/profile.php

@@ -4,6 +4,5 @@ return [
   'emptyTimeline'  => 'Tällä käyttäjällä ei ole vielä päivityksiä!',
   'emptyFollowers' => 'Tällä käyttäjällä ei ole vielä seuraajia!',
   'emptyFollowing' => 'Tämä käyttäjä ei vielä seuraa ketään!',
-  'savedWarning'   => 'Only you can see what you\'ve saved',
   'savedWarning'   => 'Vain sinä voit nähdä, mitä olet tallentanut',
 ];

+ 5 - 0
resources/views/admin/diagnostics/home.blade.php

@@ -184,6 +184,11 @@
 			<strong><span class="badge badge-primary">Storage</span> Filesystems default (local/s3/spaces): </strong>
 			<span>{{ config_cache('filesystems.default')}}</span>
 		</li>
+		<li>
+			<strong><span class="badge badge-primary">Network</span> TrustedProxy: </strong>
+			<span>{{ config('trustedproxy.proxies') }}</span>
+		</li>
+
 	</ul>
 </div>
 <div class="pb-3 border-bottom">

+ 1 - 1
resources/views/profile/embed.blade.php

@@ -37,7 +37,7 @@
   <div class="card status-card-embed card-md-rounded-0 border">
     <div class="card-header d-inline-flex align-items-center justify-content-between bg-white">
       <div>
-        <img src="{{$profile['avatar']}}" width="32px" height="32px" target="_blank" style="border-radius: 32px;">
+        <img src="{{$profile['avatar']}}" width="32px" height="32px" style="border-radius: 32px;">
         <a class="username font-weight-bold pl-2 text-dark" target="_blank" href="{{$profile['url']}}">
           {{$profile['username']}}
         </a>

+ 2 - 3
resources/views/settings/avatar.blade.php

@@ -27,6 +27,7 @@
               Max Size: 1 MB. Supported formats: jpeg, png.
             </small>
           </div>
+        </form>
         </div>
       </div>
     </div>
@@ -39,8 +40,6 @@
         </div>
       </div>
     </div>
-    </form>
-
   </div>
 
-@endsection
+@endsection

+ 1 - 1
resources/views/settings/email.blade.php

@@ -9,7 +9,7 @@
 @if ($errors->any())
     <div class="alert alert-danger px-3 h6 text-center">
             @foreach($errors->all() as $error)
-                <p class="font-weight-bold mb-1">{{ $error }}</li>
+                <p class="font-weight-bold mb-1">{{ $error }}</p>
             @endforeach
     </div>
 @endif

+ 1 - 1
resources/views/settings/password.blade.php

@@ -9,7 +9,7 @@
 @if ($errors->any())
     <div class="alert alert-danger px-3 h6 text-center">
             @foreach($errors->all() as $error)
-                <p class="font-weight-bold mb-1">{{ $error }}</li>
+                <p class="font-weight-bold mb-1">{{ $error }}</p>
             @endforeach
     </div>
 @endif

+ 1 - 1
resources/views/settings/template.blade.php

@@ -9,7 +9,7 @@
 @if ($errors->any())
     <div class="alert alert-danger px-3 h6 text-center">
             @foreach($errors->all() as $error)
-                <p class="font-weight-bold mb-1">{{ $error }}</li>
+                <p class="font-weight-bold mb-1">{{ $error }}</p>
             @endforeach
     </div>
 @endif

+ 1 - 1
resources/views/status/embed.blade.php

@@ -37,7 +37,7 @@
 	@php($item = $status)
 	<div class="card status-card-embed card-md-rounded-0 border">
 		<div class="card-header d-inline-flex align-items-center bg-white">
-			<img src="{{$item->profile->avatarUrl()}}" width="32px" height="32px" target="_blank" style="border-radius: 32px;">
+			<img src="{{$item->profile->avatarUrl()}}" width="32px" height="32px" style="border-radius: 32px;">
 			<a class="username font-weight-bold pl-2 text-dark" target="_blank" href="{{$item->profile->url()}}">
 				{{$item->profile->username}}
 			</a>