浏览代码

Merge pull request #2636 from pixelfed/staging

Staging
daniel 4 年之前
父节点
当前提交
57ee2734ba
共有 4 个文件被更改,包括 4 次插入1 次删除
  1. 1 0
      CHANGELOG.md
  2. 二进制
      public/js/compose.js
  3. 二进制
      public/mix-manifest.json
  4. 3 1
      resources/assets/js/components/ComposeModal.vue

+ 1 - 0
CHANGELOG.md

@@ -36,6 +36,7 @@
 - Updated ComposeModal, add processing step disabled by default. ([e6e76e80](https://github.com/pixelfed/pixelfed/commit/e6e76e80))
 - Updated DiscoverComponent, allow unathenicated if enabled. ([a1059a6e](https://github.com/pixelfed/pixelfed/commit/a1059a6e))
 - Updated components, improve content warnings. ([a9e98965](https://github.com/pixelfed/pixelfed/commit/a9e98965))
+- Updated ComposeModal, prevent tagging empty users. Fixes #2633. ([ceae664c](https://github.com/pixelfed/pixelfed/commit/ceae664c))
 -  ([](https://github.com/pixelfed/pixelfed/commit/))
 
 ## [v0.10.10 (2021-01-28)](https://github.com/pixelfed/pixelfed/compare/v0.10.9...v0.10.10)

二进制
public/js/compose.js


二进制
public/mix-manifest.json


+ 3 - 1
resources/assets/js/components/ComposeModal.vue

@@ -1177,7 +1177,9 @@ export default {
 					q: input
 				}
 			}).then(res => {
-				//return res.data;
+				if(!res.data.length) {
+					return;
+				}
 				return res.data.filter(d => {
 					return self.taggedUsernames.filter(r => {
 						return r.id == d.id;