Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(fixed #4064) #4055 の問題に対する opLikePlugin の独自修正を取り除く #7

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

nishizoe
Copy link

@nishizoe nishizoe commented Dec 2, 2016

$url = $notificationItem['url'];
if ($url)
{
preg_match('/(\/timeline\/show\/id|\/diary|\/communityEvent|\/communityTopic)\/[0-9]+/', $url, $m);
Copy link

Choose a reason for hiding this comment

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

preg_match でマッチしなかった場合は $notificationItem['url'] に変更を加えないための分岐が必要です

{
/*
* 下記の条件に一致する通知URLを一括で変更:
* * url に '/timeline/', '/diary/', '/communityEvent/', '/communityTopic/' が含まれ、
Copy link

Choose a reason for hiding this comment

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

メッセージ機能の通知 (/message/read/:id) は対応不要でしょうか?

Copy link
Author

Choose a reason for hiding this comment

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

メッセージ機能の通知 (/message/read/:id) は、opLikePlugin 経由で通知されているものではないので、今回の問題には当たりませんのでここでの対応は不要です。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants