Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18750562
D18475.id44383.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
746 B
Referenced Files
None
Subscribers
None
D18475.id44383.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D18475: Fix fatal on logged out Phame Post
Attached
Detach File
Event Timeline
Log In to Comment