Comments (1)
Here's the diff to get http://dev.freshports.org/backend working on HEAD only
[dan@webserver:/usr/local/www/freshports.org/classes] $ git diff newsfeed.php
diff --git a/classes/newsfeed.php b/classes/newsfeed.php
index ef03555b..10bfeed6 100644
--- a/classes/newsfeed.php
+++ b/classes/newsfeed.php
@@ -32,7 +32,7 @@
require_once($_SERVER['DOCUMENT_ROOT'] . '/../feedcreator/lib/Creator/RSSCreator20.php');
require_once($_SERVER['DOCUMENT_ROOT'] . '/../feedcreator/lib/UniversalFeedCreator.php');
-function newsfeed($db, $Format, $WatchListID = 0) {
+function newsfeed($db, $Format, $WatchListID = 0, $Branch = BRANCH_HEAD) {
$WatchListID = pg_escape_string($WatchListID);
$Format = pg_escape_string($Format);
@@ -160,9 +160,10 @@ FROM (
to_char(commit_log.commit_date - SystemTimeAdjust(), 'HH24:MI') AS commit_time,
encoding_losses
FROM commit_log JOIN
- (SELECT latest_commits_ports.commit_log_id
- FROM latest_commits_ports
- ORDER BY latest_commits_ports.commit_date DESC
+ (SELECT LCP.commit_log_id
+ FROM latest_commits_ports LCP JOIN commit_log_branches CLB ON LCP.commit_log_id = CLB.commit_log_id
+ JOIN system_branch SB ON SB.branch_name = '$Branch' AND SB.id = CLB.branch_id
+ ORDER BY LCP.commit_date DESC
LIMIT $MaxNumberOfPorts) AS LCP
ON commit_log.id = LCP.commit_log_id) AS LCPCL JOIN commit_log_ports
ON commit_log_ports.commit_log_id = LCPCL.commit_log_id
[dan@webserver:/usr/local/www/freshports.org/classes] $
from freshports.
Related Issues (20)
- ABI permissions
- Categories: Deprecated: Creation of dynamic property Categories::$dbh is deprecated in /usr/local/www/freshports/classes/category-listing.php on line 16 HOT 2
- Cannot delete a port from a watch list. HOT 1
- Notification: New Package Available: testing by users HOT 20
- Rotate the table for packages HOT 8
- Do not display the quarterly branch for -CURRENT - that is never built HOT 10
- pkg-message not displayed HOT 3
- search error HOT 1
- sqlmap package issue. HOT 2
- x11-servers/xwayland historical port versions apply PORTEPOCH to versions before it was added. HOT 9
- Warning: Undefined array key "wlid" in /usr/local/www/freshports/www/watch-list.php on line 236
- a port on a quarterly branch should not be considered new
- Increase watch list limit? HOT 3
- sanity test failures should mention branch if on quarterly
- SSLH 2.1.2? HOT 3
- no Conflicts Matches for this port - accurate or not? HOT 3
- Very few packages
- Sort package names by version, not the way it is done now HOT 1
- Move new account captcha above the create account button HOT 5
- No package information for editors/vscode HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from freshports.