]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/util.php
Start using NoParentNoticeException more widely
[quix0rs-gnu-social.git] / lib / util.php
index 395fadfbd7bcf35010ccaa993bbdee9de51e832f..f29d9559b9b7af119a2c1499b5201b1e951cf7d6 100644 (file)
@@ -725,8 +725,8 @@ function common_find_mentions($text, Notice $notice)
                 }
             } catch (NoProfileException $e) {
                 common_log(LOG_WARNING, sprintf('Notice %d author profile id %d does not exist', $origNotice->id, $origNotice->profile_id));
-            } catch (ServerException $e) {
-                // Probably just no parent. Should get a specific NoParentException
+            } catch (NoParentNoticeException $e) {
+                // This notice is not in reply to anything
             } catch (Exception $e) {
                 common_log(LOG_WARNING, __METHOD__ . ' got exception ' . get_class($e) . ' : ' . $e->getMessage());
             }