Skip to content

format self-mentions, but don't offer them - #7914

Merged
rullzer merged 3 commits into
masterfrom
fix-7254
Jan 17, 2018
Merged

format self-mentions, but don't offer them#7914
rullzer merged 3 commits into
masterfrom
fix-7254

Conversation

@blizzz

Copy link
Copy Markdown
Member
  • When auto-completing (e.g. in comments), a user cannot lookup herself anymore
  • When a users manages to mention herself in a comment, it still will be formatted now

fixes#7254

I guess it makes sense to backport it to 13, it's a papercut.

it is used by clients for formatting reasons, there is no reason not format
the author if her handle is included in the comment body.
It is unrelated to sending out notifications.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* @param array $shareTypes
* @param $lookup
* @param $limit
* @param $offset

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we add types?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah stupid IDE ;)

Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
@codecov

codecovBot commented Jan 17, 2018

Copy link
Copy Markdown

Codecov Report

Merging #7914 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@ Coverage Diff @@## master #7914 +/- ##
============================================
+ Coverage 51.23% 51.23% +<.01% - Complexity 24920 24922 +2 
============================================
Files 1604 1604 Lines 94978 94982 +4 Branches 1376 1376 ============================================
+ Hits 48662 48666 +4 
Misses 46316 46316
Impacted FilesCoverage ΔComplexity Δ
lib/private/Comments/Comment.php96.26% <ø> (-0.07%)54 <0> (-1)
lib/private/Collaboration/Collaborators/Search.php76.92% <ø> (ø)12 <0> (ø)⬇️
...private/Collaboration/Collaborators/UserPlugin.php84.5% <100%> (+1.43%)21 <3> (+3)⬆️

@danxuliudanxuliu left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Tested and works 👍

@blizzzblizzz added 4. to release Ready to be released and/or waiting for tests to finish backport-request labels Jan 17, 2018
@rullzer
rullzer merged commit 6e29b87 into masterJan 17, 2018
@rullzer
rullzer deleted the fix-7254 branch January 17, 2018 13:59
blizzz added a commit that referenced this pull request Jan 18, 2018
comments should compile mentions also if done by author
it is used by clients for formatting reasons, there is no reason not format
the author if her handle is included in the comment body.
It is unrelated to sending out notifications.
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
do not offer the handle of the current user for auto completion
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
add types to php doc
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

4. to releaseReady to be released and/or waiting for tests to finishbugfeature: comments

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Self mentions are allowed during edition but not in final comment

4 participants

@blizzz@nickvergessen@danxuliu@rullzer