瀏覽代碼

Merge pull request #2835 from pixelfed/staging

Staging
daniel 4 年之前
父節點
當前提交
28f9fe588a
共有 4 個文件被更改,包括 10 次插入0 次删除
  1. 1 0
      CHANGELOG.md
  2. 二進制
      public/js/timeline.js
  3. 二進制
      public/mix-manifest.json
  4. 9 0
      resources/assets/js/components/partials/ContextMenu.vue

+ 1 - 0
CHANGELOG.md

@@ -36,6 +36,7 @@
 - Updated PublicApiController, improve network timeline perf. ([e5f683fd](https://github.com/pixelfed/pixelfed/commit/e5f683fd))
 - Updated Network Timeline, use existing Timeline component. ([0deaafc0](https://github.com/pixelfed/pixelfed/commit/0deaafc0))
 - Updated PostComponent, show like count to owner using MomentUI. ([e9c46bab](https://github.com/pixelfed/pixelfed/commit/e9c46bab))
+- Updated ContextMenu, add missing statusUrl method. ([3cffdb11](https://github.com/pixelfed/pixelfed/commit/3cffdb11))
 -  ([](https://github.com/pixelfed/pixelfed/commit/))
 
 ## [v0.11.0 (2021-06-01)](https://github.com/pixelfed/pixelfed/compare/v0.10.10...v0.11.0)

二進制
public/js/timeline.js


二進制
public/mix-manifest.json


+ 9 - 0
resources/assets/js/components/partials/ContextMenu.vue

@@ -583,6 +583,7 @@
 									swal('Success', 'Successfully marked account as spammer', 'success');
 									self.ctxModMenuClose();
 								}).catch(err => {
+									console.log(err);
 									self.ctxModMenuClose();
 									swal(
 										'Error',
@@ -617,6 +618,14 @@
 					swal('Error', 'Something went wrong, please try again later.', 'error');
 				});
 			},
+
+			statusUrl(status) {
+				if(status.local == true) {
+					return status.url;
+				}
+
+				return '/i/web/post/_/' + status.account.id + '/' + status.id;
+			}
 		}
 	}
 </script>