Skip to content

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

Open
nishizoe wants to merge 3 commits into
tejimaya:masterfrom
nishizoe:t-4064
Open

(fixed #4064) #4055 の問題に対する opLikePlugin の独自修正を取り除く#7
nishizoe wants to merge 3 commits into
tejimaya:masterfrom
nishizoe:t-4064

Conversation

@nishizoe

@nishizoe nishizoe commented Dec 2, 2016

Copy link
Copy Markdown

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

Copy link
Copy Markdown

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
Copy Markdown

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
Copy Markdown
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