Page MenuHomePhabricator

D18475.id44383.diff
No OneTemporary

D18475.id44383.diff

diff --git a/src/applications/phame/controller/post/PhamePostViewController.php b/src/applications/phame/controller/post/PhamePostViewController.php
--- a/src/applications/phame/controller/post/PhamePostViewController.php
+++ b/src/applications/phame/controller/post/PhamePostViewController.php
@@ -19,8 +19,8 @@
$is_external = $this->getIsExternal();
// Register a blog "view" count
- //
- if (!$post->isDraft() && !$post->isArchived()) {
+ // TODO: Make it work anonymously... No transactions?
+ if (!$post->isDraft() && !$post->isArchived() && $viewer->isLoggedIn()) {
$unguarded = AphrontWriteGuard::beginScopedUnguardedWrites();
$xactions = array();
$xactions[] = id(new PhamePostTransaction())

File Metadata

Mime Type
text/plain
Expires
Sun, Oct 5, 8:14 AM (4 h, 36 m ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
12363091
Default Alt Text
D18475.id44383.diff (746 B)

Event Timeline