Skip to content

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